using System;
using UnityEngine;

namespace Yoozoo.Gameplay.Liberty.PlayerController
{
    public enum NavType
    {
        None = 0,
        Task = 1,
        Nav2Car = 2,
    }
    
    public class PlayerVariables : MonoBehaviour
    {

        public PlayerControlModeMgr playerController;
        
        public bool gotoDestination;
        public NavType navType = NavType.None;

        [SerializeField]
        private ControlMode controlMode;
        public ControlMode ControlMode
        {
            get => controlMode;
            set
            {
                controlMode = value;
                if (controlMode == ControlMode.Input)
                {
                    playerController.Switch2InputMode();
                }
                else
                {
                    playerController.Switch2AutoNavMode();
                }
            }
        }

        
        
        
    }
}